<extend name="Layout/index" />
<block name="breadcrumb-01">
	<li>
		<i class="icon-home home-icon"></i>
		<a href="#">首页</a>
	</li>
	<li class="active">图书添加</li>
</block>

<block name="breadcrumb-02">
	<h1>
		<a href="<{:U('Addbook/total')}>">返回</a>
		<small>
			<i class="icon-double-angle-right"></i>
			 图书添加
		</small>
	</h1>
</block>
<block name="main">

	<div class="row">
		<div class="col-md-12">
			<form action="<{:U('Addbook/doedit')}>" method='post' class="form-horizontal" enctype="multipart/form-data">

				<div class="form-group" style="">
					<label for="" class="col-sm-2 control-label">图书名称：</label>
					<div class="col-sm-4">
						<input type="hidden" name="id" class="form-control" value="<{$vo.id}>" >
						<input type="hidden" name="bookid" class="form-control" value="<{$vo.bookid}>" >
						<input type="text" name="name" class="form-control" value="<{$vo.name}>" placeholder="请写要添加的图书名">
					</div>
				</div>
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">作者：</label>
					<div class="col-sm-4">
						<input  type="text" name="author" class="form-control" value="<{$vo.author}>" placeholder="请填写图书的作者">
					</div>
				</div>

				<div class="form-group">
					<label for="" class="col-sm-2 control-label">小说简介</label>
					<div class="col-sm-4">
						<!-- <input  type="text" name="intro" class="form-control" placeholder="请添加小说简介"> -->
						<textarea name="abstract" id="" cols="100" rows="10" value="<{$vo.abstract}>"><{$vo.abstract}></textarea>
					</div>
				</div>
						
				<div class="form-group">
					<div class="col-sm-4 col-sm-offset-2">
						<input type="file" name="image" value="<{$vo.image}>"/>
					</div>
				</div>
				<div class="form-group">
				    <div class="col-sm-offset-2 col-sm-4">
				      <button type="submit" class="btn btn-default">修 改</button>
				    </div>
				</div>
				
			</form>
		</div>
	</div>
</block>
